package com.itany.cloud.global;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.itany.cloud.util.ResponseResult;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/8/11 16:51
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class ExceptionUtil {

    public static ResponseResult handlerException(BlockException e){
        return ResponseResult.fail("全局Sentinel异常,异常为:"+e);
    }

}
